package com.faya.green.service.impl;

import com.faya.green.dao.authority.AuthorityRoleDao;
import com.faya.green.model.AuthorityRole;
import com.faya.green.service.AuthorityRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：LX
 * 创建时间： 2018/10/28. 19:19
 * 地点：广州
 * 目的: 角色和权限关系
 * 备注说明：
 */
@Service
public class AuthorityRoleServiceImpl implements AuthorityRoleService {

    //压制全部警告
    @SuppressWarnings("all")
    @Autowired
    private AuthorityRoleDao authorityRoleDao;

    @Override
    public List<AuthorityRole> getAuthorityRoleByAuthorityId(String authorityId) {
        return authorityRoleDao.getAuthorityRoleByAuthorityId(authorityId);
    }

    @Override
    public List<AuthorityRole> getAuthorityRoleByRoleId(String roleId) {
        return authorityRoleDao.getAuthorityRoleByRoleId(roleId);
    }
}
